
TARGET  = logs
CC = g++

INCLUDES = 
LIBS     = -lpthread
CFLAGS   = -Wall -Wshadow -DPLAT32 -DRECORDLOCK -DHAS_CONTROL -D__USE_UNIX98 -g

C_SOURCES=$(wildcard *.cpp)
C_OBJS=$(patsubst %.cpp, %.o, $(C_SOURCES))

.c.o:
	$(CC) -c $(CFLAGS) $(INCLUDES) $<

compile: $(C_OBJS)
	$(CC) -o $(TARGET) $^ $(LIBS)

clean:
	rm -f $(C_OBJS) $(TARGET)

	
